<%@ page pageEncoding="UTF-8"%>
<%
    //JSP将请求默认是使用ISO-8859-1，而大多数浏览器都是以UTF-8编码发送请求数据.所以，如果不设置编码，那么就会导致乱码。
    request.setCharacterEncoding("UTF-8");
%>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<body>
<form method = "post" action="cookie2.jsp">
    <font>Username<input type = "text" name = "name"></font>
    </font><br>
    <input type = "submit" name = "submit" value = "submit" >
</form>
</body>
</html>